<div class="tips form tips-form">
<?php echo $form->create('Tip');?>
	<fieldset>
 		<legend><?php __('Edit Tip');?></legend>
		<?php echo $form->input('id'); ?>
		<?php echo $this->element('../tips/elements/form'); ?>
		<?php 
		if(isset($is_admin) and $is_admin) {
			echo $form->input('id');
			echo $form->input('ip');
			echo $form->input('views');
		}
		?>
	</fieldset>
	<div class="block">
		<div class="element">
			<?php echo $form->submit(__('Save your tip', true));?>
		</div>
		<div class="element">
			<?php echo $html->link(__('Cancel and go back', true), array('action'=>'index'),array('class'=>'button-cancel') );?>
		</div>
	</div>
	<?php echo $form->end();?>
	
	<?php echo $this->element('../tips/elements/sidebar'); ?>
</div>